<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
  </head>
  <body>
	<form action="login" method="post">
		<p>用户名：<input type="text" name="name" /></p>
		<p>密码：<input type="password" name="password" /></p>
		<p><input type="submit" value="登录" /></p>
	</form>
	<script type="text/javascript">
		var msg = '${msg}';
		if(msg){
			alert(msg);
		}
	</script>
  </body>
</html>
